package br.com.ifba.sadd.model
{
	import mx.collections.ArrayCollection;

	[Bindable]
	[RemoteClass(alias="br.com.ifba.sadd.model.Perfil")]
	public class Perfil
	{		
		private var _id:Number;
		private var _tipo:String;
		private var _roles:ArrayCollection = new ArrayCollection();
		
		public function Perfil()
		{
		}

		public function get id():Number
		{
			return _id;
		}

		public function set id(value:Number):void
		{
			_id = value;
		}

		public function get tipo():String
		{
			return _tipo;
		}

		public function set tipo(value:String):void
		{
			_tipo = value;
		}

		[ArrayElementType("br.com.ifba.sadd.model.Role")]
		public function get roles():ArrayCollection
		{
			return _roles;
		}

		public function set roles(value:ArrayCollection):void
		{
			_roles = value;
		}


	}
}